# -*- coding: utf-8 -*-
# @Time    :2022/1/12 21:57
# @AUTHOR  :MORAN
# @Email   :moran@maqu.com
# @File    :urls.py
# @Software:PyCharm
from django.urls import path
from rest_framework.routers import DefaultRouter

from rest_framework_jwt.views import obtain_jwt_token

from .views import ImageVerifyView, UserViewSet, AreaViewSet, AddressViewSet

urlpatterns = [
    path('login/', obtain_jwt_token),
    path('image/verification/<uuid>/', ImageVerifyView.as_view())
]
router = DefaultRouter()  # 创建路由器
router.register('users', UserViewSet)
router.register('area', AreaViewSet, basename='area')
router.register('address', AddressViewSet, basename='address')
urlpatterns += router.urls
